package kau.vo;

public class Registeration {
	private String custId;
	private int courseId;
	private int isConfirm;
	
	public Registeration() {}
	public Registeration(String custId, int courseId, int isConfirm) {
		super();
		this.custId = custId;
		this.courseId = courseId;
		this.isConfirm = isConfirm;
	}
	public String getCustId() {
		return custId;
	}
	public void setCustId(String custId) {
		this.custId = custId;
	}
	public int getCourseId() {
		return courseId;
	}
	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}
	
	public int getIsConfirm() {
		return isConfirm;
	}
	public void setIsConfirm(int isConfirm) {
		this.isConfirm = isConfirm;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + courseId;
		result = prime * result + ((custId == null) ? 0 : custId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Registeration other = (Registeration) obj;
		if (courseId != other.courseId)
			return false;
		if (custId == null) {
			if (other.custId != null)
				return false;
		} else if (!custId.equals(other.custId))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Registeration [custId=" + custId + ", courseId=" + courseId
				+ "]";
	}
	
}
